<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<title>Bomberman:  Fichier source de /home/ph3w/Bureau/lif7-bomberman/map.inl</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<link href="doxygen.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<!-- Généré par Doxygen 1.7.1 -->
<script type="text/javascript">
function hasClass(ele,cls) {
  return ele.className.match(new RegExp('(\\s|^)'+cls+'(\\s|$)'));
}

function addClass(ele,cls) {
  if (!this.hasClass(ele,cls)) ele.className += " "+cls;
}

function removeClass(ele,cls) {
  if (hasClass(ele,cls)) {
    var reg = new RegExp('(\\s|^)'+cls+'(\\s|$)');
    ele.className=ele.className.replace(reg,' ');
  }
}

function toggleVisibility(linkObj) {
 var base = linkObj.getAttribute('id');
 var summary = document.getElementById(base + '-summary');
 var content = document.getElementById(base + '-content');
 var trigger = document.getElementById(base + '-trigger');
 if ( hasClass(linkObj,'closed') ) {
   summary.style.display = 'none';
   content.style.display = 'block';
   trigger.src = 'open.png';
   removeClass(linkObj,'closed');
   addClass(linkObj,'opened');
 } else if ( hasClass(linkObj,'opened') ) {
   summary.style.display = 'block';
   content.style.display = 'none';
   trigger.src = 'closed.png';
   removeClass(linkObj,'opened');
   addClass(linkObj,'closed');
 }
 return false;
}
</script>
<div class="header">
  <div class="headertitle">
<h1>/home/ph3w/Bureau/lif7-bomberman/map.inl</h1>  </div>
</div>
<div class="contents">
<a href="map_8inl.html">Aller à la documentation de ce fichier.</a><div class="fragment"><pre class="fragment"><a name="l00001"></a>00001 <span class="comment">// ! Pas d&#39;include map.h ici !</span>
<a name="l00002"></a>00002 
<a name="l00003"></a>00003 <span class="comment">/***************************************************************************/</span><span class="comment">/*!</span>
<a name="l00004"></a>00004 <span class="comment">* @fn unsigned int map::X() const</span>
<a name="l00005"></a>00005 <span class="comment">* @brief Renvoie la taille X de la map</span>
<a name="l00006"></a>00006 <span class="comment">*/</span>
<a name="l00007"></a><a class="code" href="classmap.html#abc682d96c6d194b75d2e8a6430b5b076">00007</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abc682d96c6d194b75d2e8a6430b5b076" title="Renvoie la taille X de la map.">map::X</a>()<span class="keyword"> const</span>
<a name="l00008"></a>00008 <span class="keyword"></span>{
<a name="l00009"></a>00009     <span class="keywordflow">return</span> <a class="code" href="classmap.html#a12febb145e855330c3bfb0dbc3645259" title="Taille de la map.">c_taille</a>.<a class="code" href="structs___coordonnees.html#a58e4c6bec574940d228bf0a1b8b6b308">x</a>;
<a name="l00010"></a>00010 }
<a name="l00011"></a>00011 
<a name="l00012"></a>00012 
<a name="l00013"></a>00013 <span class="comment">/***************************************************************************/</span><span class="comment">/*!</span>
<a name="l00014"></a>00014 <span class="comment">* @fn unsigned int map::Y() const</span>
<a name="l00015"></a>00015 <span class="comment">* @brief Renvoie la taille Y de la map</span>
<a name="l00016"></a>00016 <span class="comment">*/</span>
<a name="l00017"></a><a class="code" href="classmap.html#abcb25776d119cd3f2864c67ec05a6a4a">00017</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">int</span> <a class="code" href="classmap.html#abcb25776d119cd3f2864c67ec05a6a4a" title="Renvoie la taille Y de la map.">map::Y</a>()<span class="keyword"> const</span>
<a name="l00018"></a>00018 <span class="keyword"></span>{
<a name="l00019"></a>00019     <span class="keywordflow">return</span> <a class="code" href="classmap.html#a12febb145e855330c3bfb0dbc3645259" title="Taille de la map.">c_taille</a>.<a class="code" href="structs___coordonnees.html#aaf8eb7cb396be8207c9c3c63a806de51">y</a>;
<a name="l00020"></a>00020 }
<a name="l00021"></a>00021 
<a name="l00022"></a>00022 
<a name="l00023"></a>00023 <span class="comment">/***************************************************************************/</span><span class="comment">/*!</span>
<a name="l00024"></a>00024 <span class="comment">* @fn const map::s_Case* map::getBlock( s_Coordonnees&amp; pos ) const</span>
<a name="l00025"></a>00025 <span class="comment">* @brief Retourn le block qui est à la position X, Y</span>
<a name="l00026"></a>00026 <span class="comment">* @note Alias de map::getBlock( unsigned int X, unsigned int Y )</span>
<a name="l00027"></a>00027 <span class="comment">*/</span>
<a name="l00028"></a><a class="code" href="classmap.html#ab0dd18578b1ea7cbc5fdfe4cf1299b7d">00028</a> <span class="keyword">inline</span> <span class="keyword">const</span> <a class="code" href="structmap_1_1s___case.html">map::s_Case</a>* <a class="code" href="classmap.html#a5ab949cacaad5148299aa70f55bb0c93" title="Retourn le block qui est à la position X, Y.">map::getBlock</a>( <a class="code" href="structs___coordonnees.html" title="struct de coordonnées ( x,y )">s_Coordonnees</a>&amp; pos )<span class="keyword"> const</span>
<a name="l00029"></a>00029 <span class="keyword"></span>{
<a name="l00030"></a>00030     <span class="keywordflow">return</span> <a class="code" href="classmap.html#a5ab949cacaad5148299aa70f55bb0c93" title="Retourn le block qui est à la position X, Y.">getBlock</a>( pos.<a class="code" href="structs___coordonnees.html#a58e4c6bec574940d228bf0a1b8b6b308">x</a>, pos.<a class="code" href="structs___coordonnees.html#aaf8eb7cb396be8207c9c3c63a806de51">y</a> );
<a name="l00031"></a>00031 }
<a name="l00032"></a>00032 
<a name="l00033"></a>00033 
<a name="l00034"></a>00034 <span class="comment">/***************************************************************************/</span><span class="comment">/*!</span>
<a name="l00035"></a>00035 <span class="comment">* @fn void map::setBlock( s_Coordonnees&amp; pos, map::t_type what )</span>
<a name="l00036"></a>00036 <span class="comment">* @brief Modifie le block qui est à la position X, Y</span>
<a name="l00037"></a>00037 <span class="comment">* @note Alias de setBlock( unsigned int X, unsigned int Y, map::t_type what )</span>
<a name="l00038"></a>00038 <span class="comment">*/</span>
<a name="l00039"></a><a class="code" href="classmap.html#a5d865615ead2c9f10768e8504b1adb23">00039</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classmap.html#a9daefd4b8e29eba7b98b734ce4530fea" title="Modifie le block qui est à la position X, Y.">map::setBlock</a>( <a class="code" href="structs___coordonnees.html" title="struct de coordonnées ( x,y )">s_Coordonnees</a>&amp; pos, <a class="code" href="classmap.html#ae2a076bf152add89e510bca3428f469b" title="Les types de d&amp;#39;objet sur la map.">map::t_type</a> what )
<a name="l00040"></a>00040 {
<a name="l00041"></a>00041     <a class="code" href="classmap.html#a9daefd4b8e29eba7b98b734ce4530fea" title="Modifie le block qui est à la position X, Y.">setBlock</a>(pos.<a class="code" href="structs___coordonnees.html#a58e4c6bec574940d228bf0a1b8b6b308">x</a>, pos.<a class="code" href="structs___coordonnees.html#aaf8eb7cb396be8207c9c3c63a806de51">y</a>, what);
<a name="l00042"></a>00042 }
<a name="l00043"></a>00043 
<a name="l00044"></a>00044 
<a name="l00045"></a>00045 <span class="comment">/***************************************************************************/</span><span class="comment">/*!</span>
<a name="l00046"></a>00046 <span class="comment">* @fn unsigned char map::nb_PointDeDepartJoueur() const</span>
<a name="l00047"></a>00047 <span class="comment">* @brief Renvoie le nombre de joueur maximum sur la carte en cours.</span>
<a name="l00048"></a>00048 <span class="comment">*/</span>
<a name="l00049"></a><a class="code" href="classmap.html#a8d73464b1277da47780e984631039299">00049</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="classmap.html#a8d73464b1277da47780e984631039299" title="Renvoie le nombre de joueur maximum sur la carte en cours.">map::nb_PointDeDepartJoueur</a>()<span class="keyword"> const</span>
<a name="l00050"></a>00050 <span class="keyword"></span>{
<a name="l00051"></a>00051     <span class="keywordflow">return</span> <a class="code" href="classmap.html#a7b627dce39ed81ebf1bcb398ee4075e3" title="Le nombre de points de départ =&amp;gt; le nombre maximum de joueur sur une map.">c_nb_PointDeDepartJoueur</a>;
<a name="l00052"></a>00052 }
<a name="l00053"></a>00053 
<a name="l00054"></a>00054 
<a name="l00055"></a>00055 <span class="comment">/***************************************************************************/</span><span class="comment">/*!</span>
<a name="l00056"></a>00056 <span class="comment">* @fn unsigned char map::nb_MAX_Joueur() const</span>
<a name="l00057"></a>00057 <span class="comment">* @brief Alias de map::nb_PointDeDepartJoueur()</span>
<a name="l00058"></a>00058 <span class="comment">*/</span>
<a name="l00059"></a><a class="code" href="classmap.html#a27112670bd34ef701a81f727410ed3b4">00059</a> <span class="keyword">inline</span> <span class="keywordtype">unsigned</span> <span class="keywordtype">char</span> <a class="code" href="classmap.html#a27112670bd34ef701a81f727410ed3b4" title="Alias de map::nb_PointDeDepartJoueur().">map::nb_MAX_Joueur</a>()<span class="keyword"> const</span>
<a name="l00060"></a>00060 <span class="keyword"></span>{
<a name="l00061"></a>00061     <span class="keywordflow">return</span> <a class="code" href="classmap.html#a8d73464b1277da47780e984631039299" title="Renvoie le nombre de joueur maximum sur la carte en cours.">nb_PointDeDepartJoueur</a>();
<a name="l00062"></a>00062 }
<a name="l00063"></a>00063 
<a name="l00064"></a>00064 
<a name="l00065"></a>00065 <span class="comment">/***************************************************************************/</span><span class="comment">/*!</span>
<a name="l00066"></a>00066 <span class="comment">* @fn const std::vector&lt;s_Coordonnees&gt;* getModifications() const</span>
<a name="l00067"></a>00067 <span class="comment">* @brief Retourne la liste des modifications.</span>
<a name="l00068"></a>00068 <span class="comment">* @warning NE pas oublier d&#39;appeler map::cleanModifications() après totale utilisation de cette fonction</span>
<a name="l00069"></a>00069 <span class="comment">* @note Si vous n&#39;utiliser cette fonction qu&#39;a un seul endroit, pour une utilisation plus correcte de la liste, préférez l&#39;utilisation de map::getModifications( s_Coordonnees&amp; pos )</span>
<a name="l00070"></a>00070 <span class="comment">*/</span>
<a name="l00071"></a><a class="code" href="classmap.html#a37db5c6e03a1245a8c461d56d7f011ef">00071</a> <span class="keyword">inline</span> <span class="keyword">const</span> std::vector&lt;s_Coordonnees&gt;* <a class="code" href="classmap.html#a37db5c6e03a1245a8c461d56d7f011ef">map::getModifications</a>()<span class="keyword"> const</span>
<a name="l00072"></a>00072 <span class="keyword"></span>{
<a name="l00073"></a>00073     <span class="keywordflow">return</span> &amp;<a class="code" href="classmap.html#a2bb86c76f29e21c88014ebbe05769096" title="Les changement qui ont eu lieu sur la map.">c_listDesChangement</a>;
<a name="l00074"></a>00074 }
<a name="l00075"></a>00075 
<a name="l00076"></a>00076 
<a name="l00077"></a>00077 <span class="comment">/***************************************************************************/</span><span class="comment">/*!</span>
<a name="l00078"></a>00078 <span class="comment">* @fn const void map::cleanModifications()</span>
<a name="l00079"></a>00079 <span class="comment">* @brief Vide la liste des modifications.</span>
<a name="l00080"></a>00080 <span class="comment">* @see std::vector&lt;s_Coordonnees&gt;* getModifications()</span>
<a name="l00081"></a>00081 <span class="comment">*/</span>
<a name="l00082"></a><a class="code" href="classmap.html#a42565c1df7cd77962409dffcb24e60b9">00082</a> <span class="keyword">inline</span> <span class="keywordtype">void</span> <a class="code" href="classmap.html#a42565c1df7cd77962409dffcb24e60b9" title="Vide la liste des modifications.">map::cleanModifications</a>()
<a name="l00083"></a>00083 {
<a name="l00084"></a>00084     <a class="code" href="classmap.html#a2bb86c76f29e21c88014ebbe05769096" title="Les changement qui ont eu lieu sur la map.">c_listDesChangement</a>.clear();
<a name="l00085"></a>00085 }
</pre></div></div>
</div>
<hr class="footer"/><address class="footer"><small>Généré le Fri Jan 21 2011 01:21:27 pour Bomberman par&nbsp;
<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.1 </small></address>
</body>
</html>
